package cn.edu.scnu.springbootch6.service;

import cn.edu.scnu.springbootch6.entity.Comment;
import cn.edu.scnu.springbootch6.mapper.CommentMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommentService extends ServiceImpl<CommentMapper,Comment> {
    @Autowired
    private CommentMapper commentMapper;
    public Comment findById(int commentId) {
        return commentMapper.selectById(commentId);
    }
}
